<?#//v.3.1.1
#///////////////////////////////////////////////////////
#//  COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

require('../includes/config.inc.php');
include "loggedin.inc.php";

#//
if($_POST[action] == "update")
{
	#// Update database
	$query = "update PHPAUCTIONXL_settings set banners='".addslashes($_POST[banners])."'";
	$res = @mysql_query($query);
	if(!$res)
	{
		print "Error: $query<BR>".mysql_error();
		exit;
	}
	else
	{
		$ERR = $MSG_600;
		$SETTINGS = $_POST;
	}
}
else
{
	#//
	$query = "SELECT * FROM PHPAUCTIONXL_settings";
	$res = @mysql_query($query);
	if(!$res)
	{
		print "Error: $query<BR>".mysql_error();
		exit;
	}
	elseif(mysql_num_rows($res) > 0)
	{
		$SETTINGS = mysql_fetch_array($res);
	}
}




?>
<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" link="#0066FF" vlink="#666666" alink="#000066" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr> 
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
          <td class="icono"><img src="images/ad_icon2.gif" width="22" height="22" ></td>
          <td class="breadcrumbs"><p><span><?=$MSG_25_0011?></span>&nbsp;&gt;&gt;&nbsp;<?=$MSG__0011?></p></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD>
<CENTER>
	<BR>
	<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>
		<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0" class="base" style="border:1px solid #ccc;">
			<TR>
				<TD ALIGN=CENTER class=title>
					<p><? print $MSG__0011; ?></p>
					</TD>
			</TR>
			<TR>
				<TD>
					<TABLE WIDTH=100% CELLPADDING=0  cellspacing="0">
						<?
						if(!empty($ERR))
						{
						?>
							<TR>
							<TD class=error COLSPAN="2"><?=$ERR?></TD>
						</TR>
						<?
						}
						?>
						<TR VALIGN="TOP">
							<TD colspan="2" class="line lineV">
							<p><strong><? print $MSG__0009; ?></strong></p></TD>
						</TR>
						<TR VALIGN="TOP">
							<TD WIDTH=125 HEIGHT="35" class="gris line"><p class="blue"><? print $MSG_597; ?></p>							</TD>
							<TD WIDTH="368" HEIGHT="35" valign="TOP" class="gris line">
								<INPUT TYPE="radio" NAME="banners" VALUE="1"
					<? if($SETTINGS[banners] == 1) print " CHECKED";?>
					>
								
								<? print $MSG_030; ?>
							
								<INPUT TYPE="radio" NAME="banners" VALUE="2"
					<? if($SETTINGS[banners] == 2) print " CHECKED";?>
					>
								
								<? print $MSG_029; ?>							 </TD>
						</TR>
						<TR>
							<TD WIDTH=125 >
								<INPUT TYPE="hidden" NAME="action" VALUE="update">
								<INPUT TYPE="hidden" NAME="id" VALUE="<?=$id?>">							</TD>
							<TD WIDTH="368" >
								<INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_530; ?>" class="action">							</TD>
						</TR>
						<TR>
							<TD WIDTH=125></TD>
							<TD WIDTH="368"> </TD>
						</TR>
					</TABLE>
				</TD>
			</TR>
		</TABLE>
		</FORM>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>